<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<meta charset="UTF-8">
	<title>凯胜项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel="stylesheet" href="static/css/style.css" type="text/css" />
	<style type="text/css">
		.icon-while{
			background-image: url("img/glyphicons-halflings-white.png");
		}
		body{
			background-image:url("static/img/bg_main.jpg");
		}
	</style>
</head>
<body>
	<%@ include file="include/top2.jsp" %>
	<br />
	<br />
	<br />
	<br />
	<div class="container">
		<div class="row">
			<jsp:include page="include/side.jsp">
				<jsp:param value="new" name="tag"/>
			</jsp:include>
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="task.html"><i class="icon-th"></i>文件列表>客户资料</a>
					</li>
					<li class="pull-right"><i class="icon-plus"></i><a data-toggle="modal" href="#myModal" class="btn btn-primary">上传文件</a>
						
						<div class="modal hide fade" id="myModal">
				
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal">×</button>
								<h3>上传文件</h3>
							</div>
							
							<div class="modal-body">
								<form class="form-horizontal" action="filer.jspx?m=upload" method="post" enctype="multipart/form-date">
								  <fieldset>
									<legend>Upload</legend>
									<div class="control-group">
									  <label class="control-label" for="input01">文件名</label>
									  <div class="controls">
										<input type="text" class="input-xlarge" id="input01" name="desc">
									  </div>
									</div>
									<div class="control-group">
										<label class="control-label" for="input01">选择文件</label>
										<div class="controls">
											<input type="file" class="input-xlarge" id="input01" name="mydocument">
										</div>
									</div>
								  </fieldset>
								</form>
							</div>
							<div class="modal-footer">
								<a href="#" class="btn" data-dismiss="modal">取消</a>
								<button type="submit" class="btn btn-primary">登录</button>
							</div>
						</div>
					</li>
					
					
					
				</ul>
				<div class="wall">
					<table class="table table-striped">
						<thead>
							<tr>
								<th width="30px"></th>
								<th width="60%">名称</th>
								<th width="20%">大小</th>
								<th>创建人</th>
							</tr>
						</thead>
						<tbody>
							
							<c:forEach items="filerList" var="d">
							<tr>
								
								<td>
									<img src="img/document.png"/>
								</td>
								
								<td><a href="file.jspx?m=download&f=${d.filename }">${f.changeName}</a></td>
								<td>${fn:length(filerlist) } at 5.5M</td>
								<td>樊凯</td>
							</tr>
							</c:forEach>
						</tbody>
					</table> 
					<a href="folder.jspx">←返回</a>
				</div>
			</div>
		</div>
	</div>
	
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#showModel").click(function(){
				$("#myModal").modal();
			});
			$("#showModel").click(function(){
				$("#myModal2").modal();
			});
			$("#showModel").click(function(){
				$("#myModal3").modal();
			});
		});
	</script>
	
</body>
</html>